package com.lagou.controller;

import com.lagou.pojo.ArticlePage;
import com.lagou.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Calendar;

/**
 * @author sxnan
 * @className LoginController
 * @description TODO
 * @date 2020/7/6
 */
@RestController
public class TestController {

    @Autowired
    private ArticleService articleService;
    /**
     * 获取并封装当前年份跳转到登录页login.html
     */
//    @RequestMapping("/test")
//    public ArticlePage toLoginPage(Model model) {
//        ArticlePage articlePage = articleService.findArticlePage(0, 3);
//        return articlePage;
//    }
}
